/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconArrowDown: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M512 874.976a32 32 0 0 1-31.776-28.256L480 842.976v-672a32 32 0 0 1 63.776-3.712l0.224 3.712v672a32 32 0 0 1-32 32z m22.624-4.352a32 32 0 0 1-42.464 2.496l-2.784-2.496-277.024-277.024a32 32 0 0 1 42.464-47.744l2.784 2.496 254.4 254.4 254.4-254.4a32 32 0 0 1 42.464-2.496l2.784 2.496a32 32 0 0 1 2.496 42.464l-2.496 2.784-277.024 277.024z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconArrowDown.defaultProps = {
  size: 18,
};

export default IconArrowDown;
